import 'package:get/get.dart';
import '../model/user/user_info.dart';

class UserState {
  UserModel? user;
  String? token;

  var userObs = UserModel().obs;

  var unReadMsgCount = 0.obs;

  String? aesData;
  RSAModel? rsa;
}

class RSAModel {
  String? key;
  String? iv;
  RSAModel({
    this.key,
    this.iv,
  });
  factory RSAModel.fromJson(Map<String, dynamic> json) => RSAModel(
        key: json["aes_key"],
        iv: json["iv"],
      );
}
